# -*- encoding:utf-8 -*-
# @time: 2023/3/15 19:33
# @author: Maxs_hu
import hashlib
from Order import settings


def md5(password):
    obj = hashlib.md5(settings.SECRET_KEY.encode('utf-8'))  # 转化字节的格式
    obj.update(password.encode('utf-8'))  # 转化成字节
    return obj.hexdigest()
